package com.amphora.model;

import java.io.Serializable;
import java.util.Calendar;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.NamedQuery;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;


/**
 * The persistent class for the calendar_event database table.
 * 
 */
@Entity
@Table(name="calendar_event")
@NamedQuery(name="CalendarEvent.findAll", query="SELECT c FROM CalendarEvent c")
public class CalendarEvent implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	private Long id;

	@OneToOne
	@JoinColumn(name="booking_id")
	private Booking booking;

	@Temporal(TemporalType.TIMESTAMP)
	private Calendar end;

	@Column(name="event_type")
	private String eventType;

	@Temporal(TemporalType.TIMESTAMP)
	private Calendar start;

	private String title;

	public CalendarEvent() {
	}

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Booking getBooking() {
		return this.booking;
	}

	public void setBooking(Booking booking) {
		this.booking = booking;
	}

	public Calendar getEnd() {
		return this.end;
	}

	public void setEnd(Calendar end) {
		this.end = end;
	}

	public String getEventType() {
		return this.eventType;
	}

	public void setEventType(String eventType) {
		this.eventType = eventType;
	}

	public Calendar getStart() {
		return this.start;
	}

	public void setStart(Calendar start) {
		this.start = start;
	}

	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	public static String getClassName(){
		return "com.amphora.model.CalendarEvent";
	}
}